package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.EmployeeAssessmentDetail;
import com.ruoyi.system.domain.vo.DetailVO;
import com.ruoyi.system.mapper.DetailMapper;
import com.ruoyi.system.mapper.EmployeeAssessmentDetailMapper;
import com.ruoyi.system.service.IDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class DetailImpl implements IDetailService {

    @Autowired
    private DetailMapper detailMapper;
    @Override
    public List<DetailVO> getDetailVOList(Long departmentId, String assessmentStatus) {
        return detailMapper.getDetailVOList(departmentId,assessmentStatus);
    }
    @Autowired
    private EmployeeAssessmentDetailMapper employeeAssessmentDetailMapper;

    @Override
    public int updateAssessmentStatus(EmployeeAssessmentDetail employeeAssessmentDetail) {
        return employeeAssessmentDetailMapper.updateByPrimaryKeySelective(employeeAssessmentDetail);
    }
}
